import request from "./request";

export function predict (data) {
    return request({
        url: '/single/interaction/predict',
        method: 'post',
        responseType: 'blob',
        data: data
    })
}

export function virusGroups(query) {
    return request({
        url: '/single/interaction/virusGroups',
        method: 'get',
        params: query
    })
}

export function hostGroups(query) {
    return request({
        url: '/single/interaction/hostGroups',
        method: 'get',
        params: query
    })
}

export function getVirusNodes(query) {
    return request({
        url: '/single/interaction/getVirusNodes',
        method: 'get',
        params: query
    })
}

export function getHostNodes(query) {
    return request({
        url: '/single/interaction/getHostNodes',
        method: 'get',
        params: query
    })
}

export function getAllFamilys(query) {
    return request({
        url: '/single/interaction/getAllFamilys',
        method: 'get',
        params: query
    })
}

export function getVirusByFamily(query) {
    return request({
        url: '/single/interaction/getVirusByFamily',
        method: 'get',
        params: query
    })
}

export function exportVirus(query) {
    return request({
        url: '/single/interaction/exportVirus',
        method: 'get',
        responseType: 'blob',
        params: query
    })
}

export function exportHost(query) {
    return request({
        url: '/single/interaction/exportHost',
        method: 'get',
        responseType: 'blob',
        params: query
    })
}

export function getVirusGroupsByHost(query) {
    return request({
        url: '/single/interaction/getVirusGroupsByHost',
        method: 'get',
        params: query
    })
}

export function interList(query) {
    return request({
        url: '/single/interaction/interList',
        method: 'get',
        params: query
    })
}

